package Expe15;

import java.io.File;
import java.io.FileWriter;
import java.io.IOException;

/**
 * @Author 28021
 * @Date 2022/12/13
 */
public class T2 {
    public static void main(String[] args) {
        File file = new File("D:\\Git\\gitCode\\java-journal\\Expe15\\T2.txt");
        char[] b = "我爱学 java!".toCharArray();
        try {
            FileWriter out = new FileWriter(file,true);
            out.write(b);
            out.close();
        }
        catch (IOException e){
            System.out.println(e);
        }
    }
}
